package com.base.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by gml on 17/2/23.
 */

public abstract class BaseFragment extends Fragment {


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(getViewLayoutId(), container, false);
        initView(v);
        return v;
    }
    protected abstract int getViewLayoutId();
    protected void initView(View v){

    }
}
